package com.springframework.DI_t.map_DI.bean;

import java.util.Map;

public class Student {
    private int stuId;
    private String stuName;
    private Map<String,Teacher> stuOfTeacher;

    public void run(){
        System.out.println("学生ID："+stuId+",学生名字："+stuName);
    }

    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Map<String, Teacher> getStuOfTeacher() {
        return stuOfTeacher;
    }

    public void setStuOfTeacher(Map<String, Teacher> stuOfTeacher) {
        this.stuOfTeacher = stuOfTeacher;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", stuOfTeacher=" + stuOfTeacher +
                '}';
    }
}
